package com.rustic.server.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

/**
 * 表[user]对应UpdateDTO类
 *
 * @author auto
 */

@Data
public class EmailDTO {

    @ApiModelProperty(value = "邮箱", dataType = "String", required = true)
    @NotEmpty(message = "邮箱不可为空")
    @Email
    private String email;

}
